using System;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace DataAccessLayer
{
    [Serializable]
    public sealed class GameLevel
    {
        [XmlAttribute]
        public int ID { get; set; }

        [XmlElement]
        public float StartTime { get; set; }

        [XmlElement]
        public string Background { get; set; }

        [XmlArray("Waves"), XmlArrayItem("Wave")]
        public List<LevelWave> LevelWaves { get; set; }

        [XmlArray("WaveStartTimes"), XmlArrayItem("StartTime")]
        public List<float> WaveStartTimes { get; set; }

        public GameLevel()
        {
            ID = 0;

            StartTime = 0;

            LevelWaves = new List<LevelWave>();

            WaveStartTimes = new List<float>();
        }
    }
}